import request from '@/utils/request'

/**
 * 获取品牌
 * @param {Integer} limit 品牌个数
 * @returns Promise
 */
export const findBrandAPI = (limit = 6) => {
  return request('/home/brand', 'get', { limit })
}

/**
 * 获取广告轮播图
 * @returns Promise
 */
export const findBannerAPI = () => {
  return request('/home/banner', 'get')
}

/**
 * 获取新鲜好物
 * @returns Promise
 */
export const findNewAPI = () => {
  return request('/home/new', 'get')
}

/**
 * 获取人气推荐
 * @returns Promise
 */
export const findHotAPI = () => {
  return request('home/hot', 'get')
}

/**
 * 获取商品板块
 * @returns Promise
 */
export const findProductAPI = () => {
  return request('home/goods', 'get')
}

/**
 * 获取最新专题
 * @returns Promise
 */
export const findSpecialAPI = () => {
  return request('home/special', 'get')
}

/**
 * 获取评价列表
 * @returns Promise
 */
//  export const findSpecialAPI = () => {
//   return request(`/goods/${id}/evaluate/page`, 'get')
// }
